﻿@extends('layouts/home')
@section('info')
<title>{{Config::get('web.web_title')}} -{{Config::get('web.seo_title')}}</title>
<meta name="keywords" content="{{Config::get('web.keywords')}}" />
<meta name="description" content="{{Config::get('web.description')}}" />
    <link href="{{asset('style/css/base.css')}}" rel="stylesheet">
    <link href="{{asset('style/css/index.css')}}" rel="stylesheet">
    <link href="{{asset('style/css/style.css')}}" rel="stylesheet">
@endsection
@section('content')
<div class="banner">
  <section class="box">
    <ul class="texts">
                <p>学而不思则罔</p>
                <p>思而不学则殆</p>
                <p>在编程的道路上，一定要不断的学习新知识充实自己，才不会被淘汰</p>
            </ul>
    <div class="avatar"><a href="#"><span>jeff</span></a> </div>
  </section>
</div>
<div class="template">
  <div class="box">
    <h3>
      <p><span>站长</span>推荐 Recommend</p>
    </h3>
    <ul>
      @foreach($phot as $h)
      <li><a href="{{url('a/'.$h->art_id)}}"  target="_blank"><img src="{{url($h->art_thumb)}}"></a><span>{{$h->art_title}}</span></li>
      @endforeach
    </ul>
  </div>
</div>
<article>
  <h2 class="title_tj">
    <p>文章<span>推荐</span></p>
  </h2>
  <div class="bloglist left">
    @foreach($data as $d)
    <h3>{{$d->art_title}}</h3>
    <figure><img src="{{url($d->art_thumb)}}"></figure>
    <ul>
      <p>{{$d->art_description}}</p>
      <a title="{{$d->art_title}}" href="{{url('a/'.$d->art_id)}}" target="_blank" class="readmore">阅读全文>></a>
    </ul>
    <p class="dateview"><span style="margin:0 10px"> {{date('Y-m-d',$d->art_time)}}</span><span>作者：{{$d->art_editor}}</span></p>
    @endforeach
      <div class="page">
          {{$data->links()}}
      </div>
  </div>
  <aside class="right">
      <!-- Baidu Button BEGIN -->
      <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare"><a class="bds_tsina"></a><a class="bds_qzone"></a><a class="bds_tqq"></a><a class="bds_renren"></a><span class="bds_more"></span><a class="shareCount"></a></div>
      <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6574585" ></script>
      <script type="text/javascript" id="bdshell_js"></script>
      <script type="text/javascript">
          document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
      </script>
      <!-- Baidu Button END -->
      <div class="news" style="float: left;">
        @parent
    <h3 class="links">
      <p>友情<span>链接</span></p>
    </h3>
    <ul class="website">
        @foreach($links as $l)
      <li><a href="{{url($l->link_url)}}" target="_blank">{{$l->link_name}}</a></li>
        @endforeach
    </ul>
    </div>  

    </aside>
</article>
@endsection
